package com.superatom.springframework.core.convert.support;

import com.superatom.springframework.core.convert.ConversionService;
import com.superatom.springframework.core.convert.converter.Converter;

final class EnumToStringConverter extends AbstractConditionalEnumConverter implements Converter<Enum<?>, String> {

    public EnumToStringConverter(ConversionService conversionService) {
        super(conversionService);
    }

    @Override
    public String convert(Enum<?> source) {
        return source.name();
    }

}
